From f0e46422dba11bfba4c6e85cbc68289d24fd1d11 Mon Sep 17 00:00:00 2001 From: Bernd Zeimetz Date: Mon, 14 Feb 2011 13:51:23 +0100 Subject: [PATCH] Refreshing patches for new upstream version. --- .../patches/gpsbabelfe_disable_version_check | 25 ++------ .../gpsbabelfe_do-not-check-for-newer-version | 59 ++++++++++++++----- 2 files changed, 50 insertions(+), 34 deletions(-) diff --git a/debian/patches/gpsbabelfe_disable_version_check b/debian/patches/gpsbabelfe_disable_version_check index 33b863394..b4bd1a9e2 100644 --- a/debian/patches/gpsbabelfe_disable_version_check +++ b/debian/patches/gpsbabelfe_disable_version_check @@ -1,20 +1,5 @@ Disable version mismatch check. ---- a/gui/mainwindow.cpp -+++ b/gui/mainwindow.cpp -@@ -198,12 +198,6 @@ MainWindow::MainWindow(QWidget* parent): - allowBetaUpgrades()); - } - -- if (!bd.ignoreVersionMismatch && babelVersion != VERSION) { -- VersionMismatch vm(0, babelVersion, QString(appName) + QString(" Version " VERSION)); -- -- vm.exec(); -- bd.ignoreVersionMismatch = vm.neverAgain(); -- } - } - - //------------------------------------------------------------------------ --- a/gui/preferences.ui +++ b/gui/preferences.ui @@ -53,13 +53,6 @@ @@ -33,15 +18,15 @@ Disable version mismatch check. --- a/gui/preferences.cpp +++ b/gui/preferences.cpp -@@ -40,7 +40,6 @@ Preferences::Preferences(QWidget* parent +@@ -41,7 +41,6 @@ Preferences::Preferences(QWidget* parent ui_.startupCheck->setChecked(bd_.startupVersionCheck); ui_.reportStatisticsCheck->setChecked(bd_.reportStatistics); - ui_.ignoreVersionMismatchCheck->setChecked(bd_.ignoreVersionMismatch); - - connect (ui_.buttonBox, SIGNAL(accepted()), this, SLOT(acceptClicked())); - connect (ui_.buttonBox, SIGNAL(rejected()), this, SLOT(rejectClicked())); -@@ -80,7 +79,6 @@ void Preferences::acceptClicked() + // Because of an unfortunate bug in 1.4.0, we turn this off in 1.4.1. + if (VERSION == "1.4.1") + bd_.ignoreVersionMismatch = false; +@@ -84,7 +83,6 @@ void Preferences::acceptClicked() bd_.startupVersionCheck = ui_.startupCheck->isChecked(); bd_.reportStatistics = ui_.reportStatisticsCheck->isChecked(); diff --git a/debian/patches/gpsbabelfe_do-not-check-for-newer-version b/debian/patches/gpsbabelfe_do-not-check-for-newer-version index fff430872..a429fdf1f 100644 --- a/debian/patches/gpsbabelfe_do-not-check-for-newer-version +++ b/debian/patches/gpsbabelfe_do-not-check-for-newer-version @@ -18,15 +18,15 @@ Disable check for newer versions on start. Anonymously report usage data. --- a/gui/preferences.cpp +++ b/gui/preferences.cpp -@@ -38,7 +38,6 @@ Preferences::Preferences(QWidget* parent +@@ -39,7 +39,6 @@ Preferences::Preferences(QWidget* parent { ui_.setupUi(this); - ui_.startupCheck->setChecked(bd_.startupVersionCheck); ui_.reportStatisticsCheck->setChecked(bd_.reportStatistics); - - connect (ui_.buttonBox, SIGNAL(accepted()), this, SLOT(acceptClicked())); -@@ -77,7 +76,6 @@ void Preferences::acceptClicked() + // Because of an unfortunate bug in 1.4.0, we turn this off in 1.4.1. + if (VERSION == "1.4.1") +@@ -81,7 +80,6 @@ void Preferences::acceptClicked() formatList_[i].setHidden(item->checkState() == Qt::Unchecked); } @@ -52,10 +52,10 @@ Disable check for newer versions on start. - - - - -@@ -667,11 +666,6 @@ + + + +@@ -670,11 +669,6 @@ Preferences... @@ -64,16 +64,47 @@ Disable check for newer versions on start. - Check for Upgrade - - - - - + + + Visit Website... --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp -@@ -147,7 +147,6 @@ MainWindow::MainWindow(QWidget* parent): - connect(ui.actionQuit, SIGNAL(triggered()), this, SLOT(closeActionX())); - connect(ui.actionHelp, SIGNAL(triggered()), this, SLOT(helpActionX())); +@@ -153,7 +153,6 @@ MainWindow::MainWindow(QWidget* parent): connect(ui.actionAbout, SIGNAL(triggered()), this, SLOT(aboutActionX())); + connect(ui.actionVisit_Website, SIGNAL(triggered()), this, SLOT(visitWebsiteActionX())); + connect(ui.actionMake_a_Donation, SIGNAL(triggered()), this, SLOT(donateActionX())); - connect(ui.actionUpgradeCheck, SIGNAL(triggered()), this, SLOT(upgradeCheckActionX())); connect(ui.actionPreferences, SIGNAL(triggered()), this, SLOT(preferencesActionX())); connect(ui.inputFormatCombo, SIGNAL(currentIndexChanged(int)), +@@ -197,19 +196,8 @@ MainWindow::MainWindow(QWidget* parent): + + //--- Restore from registry + restoreSettings(); +- + upgrade = new UpgradeCheck(parent, formatList, bd); +- if (bd.startupVersionCheck) { +- upgrade->checkForUpgrade(babelVersion, bd.upgradeCheckTime, +- allowBetaUpgrades()); +- } +- +- if (!bd.ignoreVersionMismatch && babelVersion != VERSION) { +- VersionMismatch vm(0, babelVersion, QString(VERSION)); + +- vm.exec(); +- bd.ignoreVersionMismatch = vm.neverAgain(); +- } + } + + //------------------------------------------------------------------------ +@@ -926,10 +914,6 @@ void MainWindow::applyActionX() + //------------------------------------------------------------------------ + void MainWindow::closeActionX() + { +- QDateTime wt= upgrade->getUpgradeWarningTime(); +- if (wt.isValid()) { +- bd.upgradeCheckTime = wt; +- } + bd.runCount++; + + QDateTime now = QDateTime::currentDateTime(); -- 2.30.2